import http from '@/utils/http.js'

export function publishProduct() {
  return http({
    url: '/admin/api/product',
    method: 'post'
  })
}
//商品管理获取列表
export const getByStatus = (data) => {
  return http({
    url: '/order/api/product/getByStatus',
    method: 'POST',
    data
  })
}

//修改商品状态/api/product/updateStatus/{productId}/{status}
export function updateStatus(productId, status) {
  return http({
      url: `/order/api/product/updateStatus/${productId}/${status}`,
      method: 'get',
  })
}